package cate.game.play.proce.result;

import cate.common.table.d.GDPlay;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("召唤结果")
public class SummonResult extends ActionResult<SummonResult> {


    @NoteField("队伍")
    public byte team;

    @NoteField("召唤者的pid")
    public int ownerPid;

    @NoteField("召唤物tid")
    public int tid;

    @NoteField("位置")
    public byte pos;

    @NoteField("当前血量值")
    public long hp;

    @NoteField("血量最大值")
    public long hpm;

    @NoteField("等级")
    public int level;

    public SummonResult() {
        this.type = GDPlay.ResultType.SUMMON;
    }

    public SummonResult teamSet(byte team){
        this.team = team;
        return this;
    }

    public SummonResult ownerPidSet(int ownerPid){
        this.ownerPid = ownerPid;
        return this;
    }



    public SummonResult tidSet(int tid){
        this.tid = tid;
        return this;
    }


    public SummonResult posSet(byte pos) {
        this.pos = pos;
        return this;
    }

    public SummonResult hpSet(double hp) {
        this.hp = (long) hp;
        return this;
    }


    public SummonResult hpmSet(double hpm) {
        this.hpm = (long) hpm;
        return this;
    }

    public SummonResult levelSet(int level){
        this.level = level;
        return this;
    }
}
